<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加配置</title>
    <link href="/static/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/static/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/static/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/static/admin/css/animate.css" rel="stylesheet">
    <link href="/static/admin/css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>添加配置</h5>
                </div>
                <div class="ibox-content">
                    <form method="post" action="{:url('Config/add')}" class="form-horizontal">
                        <input type="hidden" name="group_id" value="{$group_id}">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">配置名称</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" name="config_title">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">配置英文标识</label>
                            <div class="col-sm-6">
                                <input type="text" name="config_name" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">配置描述</label>
                            <div class="col-sm-6">
                                <input type="text" name="config_desc" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">配置类型</label>

                            <div class="col-sm-6">
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="config_type" value="text" checked>text</label>
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="config_type" value="radio">radio</label>
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="config_type" value="select">select</label>
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="config_type" value="textarea">textarea</label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">配置参数</label>
                            <div class="col-sm-6">
                                <input type="text" name="config_info" class="form-control" placeholder="例如：1|是,0|否">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">配置值</label>
                            <div class="col-sm-6">
                                <input type="text" name="config_value" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">状态</label>

                            <div class="col-sm-6">
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="status" value="1" checked>开启</label>
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="status" value="0">关闭</label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存</button>
                                <button class="btn btn-white" type="button" onclick="history.go(-1)">取消</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="/static/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/admin/js/bootstrap.min.js?v=3.3.6"></script>

<!-- 自定义js -->
<script src="/static/admin/js/content.js?v=1.0.0"></script>

<!-- iCheck -->
<script src="/static/admin/js/plugins/iCheck/icheck.min.js"></script>

<script>
    $(document).ready(function () {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
    });
</script>


</body>

</html>
